package com.zjxh.zjxh.mob.vo.req;

import com.zjxh.zjxh.common.constant.SatisfactionEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

/**
 * @author: oyp
 * @date: 2024/5/29 on 16:03
 * @desc:
 */
@ApiModel(description = "添加评价-请求实体")
@Accessors(chain = true)
@Data
public class EvaluateReq {
  @ApiModelProperty(value = "满意度", required = true)
  @NotNull(message = "参数错误")
  private SatisfactionEnum satisfactionEnum;

  @ApiModelProperty(value = "评价内容", required = true)
  @NotBlank(message = "参数错误")
  @Length(min = 5, max = 500, message = "请输入字数5-500的评价！")
  private String context;
}
